package com.un10.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.un10.entity.Shoppingcart;
import com.un10.mapper.ShoppingcartMapper;
import com.un10.service.ShoppingcartService;

@Service
public class ShoppingcartServiceImpl implements ShoppingcartService {
	@Autowired
	private ShoppingcartMapper shoppingcartMapper;

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return shoppingcartMapper.getCount();
	}

	@Override
	public List<Shoppingcart> findAllShoppingcart(int page, int limit, String proName) {
		// TODO Auto-generated method stub
		return shoppingcartMapper.getAllShoppingcart(page, limit, proName);
	}

	@Override
	public Integer findShoppingcartAdd(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return shoppingcartMapper.ShoppingcartAdd(map);
	}

	@Override
	public Integer findShoppingcartUpdate(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return shoppingcartMapper.ShoppingcartUpdate(map);
	}

	@Override
	public Integer findShoppingcartDelete(int scartID) {
		// TODO Auto-generated method stub
		return shoppingcartMapper.ShoppingcartDelete(scartID);
	}
}
